package com.kili.file.enums;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * supported picture upload types
 *
 * @author Gordon
 * @version 2019/4/1
 */
public enum PictureType {
    //todo  have other type???
    JPG("jpg"),
    PNG("png"),
    GIF("gif"),;

    private String type;

    PictureType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public static final List<String> PICTURE_TYPE_LIST = new ArrayList<>();

    static {
        PictureType[] var0 = values();
        Arrays.asList(var0).forEach((var) -> PICTURE_TYPE_LIST.add(var.type));
    }
}
